package net.pacman.model;

import android.graphics.Rect;

public abstract class CharacterBase {

    public CharacterBase() {
        this.x = 10.0f;
        this.y = 10.0f;
        this.isMoving = true;
        this.exist = true;
    }

    public CharacterBase(float x, float y, boolean isMoving) {
        this.x = x;
        this.y = y;
        this.isMoving = isMoving;
    }

    public CharacterBase(float x, float y, boolean isMoving, boolean exist) {
        this(x, y, isMoving);
        this.exist = exist;
    }

    public boolean isExist() {
        return exist;
    }

    public void setExist(boolean exist) {
        this.exist = exist;
    }

    public boolean isIsMoving() {
        return isMoving;
    }

    public void setIsMoving(boolean isMoving) {
        this.isMoving = isMoving;
    }

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    abstract public void collision();

    private float x;
    private float y;
    private boolean isMoving;
    private boolean exist;
}
